bitkeeper revision 1.1739 (42ba886dkLcSLF35FYJLZkKeANRJYg)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 23 Jun 2005 10:01:17 +0000 (10:01 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 23 Jun 2005 10:01:17 +0000 (10:01 +0000)
Trivial cleanup in netfront driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c

index 208b00353f891f887c075231b6566fb0f4ab81c5..0ae6f7a40a445a985f080c86dc755878b5db251f 100644 (file)
@@ -1343,7 +1343,7 @@ static int xennet_proc_read(
 {
     struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL);
     struct net_private *np = netdev_priv(dev);
-    int len = 0, which_target = (unsigned long) data & 3;
+    int len = 0, which_target = (long)data & 3;
     
     switch (which_target)
     {
@@ -1368,7 +1368,7 @@ static int xennet_proc_write(
 {
     struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL);
     struct net_private *np = netdev_priv(dev);
-    int which_target = (unsigned long) data & 3;
+    int which_target = (long)data & 3;
     char string[64];
     long target;